package com.djt.book_system.service.impl;

import com.djt.book_system.dao.IndexDao;
import com.djt.book_system.entity.index;
import com.djt.book_system.service.IndexService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service("IndexService")
public class IndexServiceImp implements IndexService {
    @Resource
    private IndexDao indexDao;
    @Override
    public index indexData() {
        return indexDao.indexData();
    }

    @Override
    public int dateBorrows(int date) {
        return indexDao.dateBorrows(date);
    }
}
